/**
 * 
 */
package org.jprobe.junit;

import org.jprobe.JavaProjectInterface;

/**
 * default junit generator with 5 seconds timeout
 * @author Hussain Al-Mutawa
 * @version 2.0
 * @since 2.0
 */
public class JUnitGeneratorAdaptor extends AbstractJUnitGenerator {

	public JUnitGeneratorAdaptor(final JavaProjectInterface javaProject) {
		super(javaProject);
	}
	@Override
	public void processCompleted() {
		out("completed");
	}
	@Override
	public void processStarted() {
		out("started");
	}
	@Override
	public int getTimeOut() {
		return 5;
	}
	@Override
	public void progressChanged(int progress) {
		out("["+100*progress/getTotalTransactions()+"%]");
	}
	@Override
	public void out(String message) {
		System.out.println(message);
	}
	@Override
	public void err(String message) {
		System.err.println(message);
	}

}
